<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>日期对象</title>
        <script type="text/javascript">
            // 
            let d1 = new Date();
            console.log(d1);

            let d2 = new Date('2021-10-06 23:59:59');
            console.log(d2);

            let d3 = new Date(2021, 9, 06, 8, 38, 30);
            console.log(d3);

            console.log(d1.valueOf());
            console.log(d1.getTime());

            // 
            let d4 = +new Date();
            console.log(d4);
        </script>
    </head>
    <body>
    </body>
</html>
